<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>日志查看系统</title>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="Access-Control-Allow-Origin" content="*"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="css/style.css"/>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/websocket.js"></script>
    <!--<script type="text/javascript" src="js/app.js"></script>-->
    <script type="text/javascript" src="js/FileSaver.js"></script>

    <!--<script charset="UTF-8" type="text/javascript">
        window.onload = function () {
            console.log('加载网页');
            connect();
        }

        window.onbeforeunload = function () {
            console.log('离开网页onbeforeunload');
            return "要离开吗？？？？？";
        };

        window.onunload = function () {
            console.log('离开网页onunload');
            onDestroy();
        }

    </script>-->

</head>

<body>

<div id="login">
    <div>
        <input id="btnClear" type="button" value="清空日志" onclick="ClearTextArea()"/>
        <input id="post1" type="button" value="保存日志" onclick="saveLog(getText())"/>
        <!--<input type="button" value="关闭websocket" onclick="onDestroy()"/>-->
    </div>

    <div class="divcss5">
        <div id="status">
            来自服务端的消息
        </div>
        <textarea id="txtContent" readonly="readonly" class="comments"></textarea>
    </div>
</div>
</body>

</html>